<%-- 
    Document   : header
    Created on : Oct 3, 2010, 10:03:58 AM
    Author     : QUANG2PRO
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<script type="text/javascript">
<!--
function confirmation() {
	var answer = confirm("Are you sure?")
	if (answer){
		window.location = "./logout.jsp";
	}
	else{
		return false;
	}
}
//-->
</script>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <style type="text/css">
            a.one:link
            {
                float:right;
                width:150px;
                text-decoration:none;
                color:white;
            }

            a.one:hover {background-color:#ff3300;}

            a.one:visited
            {
                float:right;
                width:150px;
                text-decoration:none;
                color:white;
            }

            .td
            {
                background-color:purple;
                width: 150px;
            }
        </style>
    </head>
    <body>
        <table border="0px">
            <tr>
                <td style="width: 300px; height: 150px;">
                    <img src="images/decoration/logo.png" style="width: 300px; height: 150px" alt="logo"/>
                </td>
                <td>
                    <h1 style="letter-spacing: 7px; text-indent: 50px; font-size: 40px">
                        SRS Education Institution
                    </h1>
                </td>
            </tr>

        </table>
        <table>
            <tr style="text-align: center">

                <%
                            if (request.getSession().getAttribute("username") != null) {
                %>

                <td class="td"><a class="one" href="index.jsp">Home</a></td>
                <td class="td"><a class="one" href="inbox.jsp">Mail Box</a></td>
                <td class="td"><a class="one" href="viewProfile.jsp">Profile</a></td>
                <td class="td"><a class="one" href="myActivities.jsp">My Activities</a></td>
                <td class="td"><a class="one" href="sendFeedback.jsp">Feedback</a></td>
                <td class="td"><a class="one" onclick="return confirmation()" href='./logout.jsp'>Logout</a></td>

                <%
                    }
                    else
                    {
                %>
                <td style="width: 200px"></td>
                <td style="width: 200px"></td>
                <td style="width: 200px"></td>
                <td class="td"><a class="one" href="index.jsp">Home</a></td>
                <td class="td"><a class="one" href="registerAccount.jsp">Register</a></td>
                <td class="td"><a class="one" href="login.jsp">Login</a></td>
                <%
                    }
                %>
            </tr>
        </table>
    </body>
</html>
